package com.hanamaki.unittest.junit.junitdemo;

import org.junit.AfterClass;
import org.junit.Before;
import org.junit.After;
import org.junit.BeforeClass;
import org.junit.Ignore;
import org.junit.Test;


public class TestCalc {

	@BeforeClass
	public static void BeforeClass() {
		System.out.println("@BeforeClass执行了");
	}
	@AfterClass
	public static void AfterClass() {
		System.out.println("@AfterClass执行了");
	}
	@Ignore
	@Test
	public void t1() {
		System.out.println("测试方法1");
	}
	@Test(timeout=1)
	public void t2() throws Exception {
		Thread.sleep(2);
		System.out.println("测试方法2");
	}

	@After
	public void After() {
		System.out.println("@After执行了");
	}
	@Before
	public void Before() {
		System.out.println("@Before执行了");
	}







}
